package 集合.Comparable.Test01;

public class T implements Comparable<T>{
    int a;

    public T(int a) {
        this.a = a;
    }

    public T() {
    }

    @Override
    public int compareTo(T t) {
        return this.a - t.a;
    }

    @Override
    public String toString() {
        return "T{" +
                "a=" + a +
                '}';
    }
}
